package com.mall.shopping.dto;

import java.io.Serializable;
import java.util.List;

/**
 * @description: TODO
 * @author: jiaolei
 * @date: 2021/12/12 21:27
 */
public class ShoppingGoodsVo implements Serializable {

    private static final long serialVersionUID = 3051503334899171199L;
    /**
     * data : [{"productId":100040607,"salePrice":2999,"productName":"坚果 3","subTitle":"坚果 3 意外碎屏保修服务（碎屏险）","picUrl":"https://resource.smartisan.com/resource/13e91511f6ba3227ca5378fd2e93c54 b.png"},{"productId":100057601,"salePrice":149,"productName":"Smartisan T恤 皇帝的新装","subTitle":"","picUrl":"https://resource.smartisan.com/resource/d9586f7c5bb4578e3128de77a13e4d 85.png"}]
     * total : 2
     */

    private int total;
    private List<ShoppingGoodsDto> data;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<ShoppingGoodsDto> getData() {
        return data;
    }

    public void setData(List<ShoppingGoodsDto> data) {
        this.data = data;
    }

    public static class ShoppingGoodsDto implements Serializable{
        private static final long serialVersionUID = 2561042843582310084L;
        /**
         * productId : 100040607
         * salePrice : 2999
         * productName : 坚果 3
         * subTitle : 坚果 3 意外碎屏保修服务（碎屏险）
         * picUrl : https://resource.smartisan.com/resource/13e91511f6ba3227ca5378fd2e93c54 b.png
         */

        private int productId;
        private int salePrice;
        private String productName;
        private String subTitle;
        private String picUrl;

        public int getProductId() {
            return productId;
        }

        public void setProductId(int productId) {
            this.productId = productId;
        }

        public int getSalePrice() {
            return salePrice;
        }

        public void setSalePrice(int salePrice) {
            this.salePrice = salePrice;
        }

        public String getProductName() {
            return productName;
        }

        public void setProductName(String productName) {
            this.productName = productName;
        }

        public String getSubTitle() {
            return subTitle;
        }

        public void setSubTitle(String subTitle) {
            this.subTitle = subTitle;
        }

        public String getPicUrl() {
            return picUrl;
        }

        public void setPicUrl(String picUrl) {
            this.picUrl = picUrl;
        }
    }
}
/*{
 "data":[
 {
 "productId":100040607,
 "salePrice":2999,
 "productName":"坚果 3",
 "subTitle":"坚果 3 意外碎屏保修服务（碎屏险）",
 "picUrl":"https://resource.smartisan.com/resource/13e91511f6ba3227ca5378fd2e93c54
b.png"
 },
 {
 "productId":100057601,
 "salePrice":149,
 "productName":"Smartisan T恤 皇帝的新装",
 "subTitle":"",
 "picUrl":"https://resource.smartisan.com/resource/d9586f7c5bb4578e3128de77a13e4d
85.png"
 }
 ],
 "total":2
 }*/